package com.github.itdachen.product;

import com.github.itdachen.auth.client.EnableAuthClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 商品管理模块
 *
 * @author 王大宸
 * @date 2025-03-03 15:33
 */
@RefreshScope // 动态刷新配置
@EnableScheduling // 定时任务
@EnableAuthClient
@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.github.itdachen"})
@MapperScan(basePackages = "com.github.itdachen.**.mapper")
public class PlatformProductBootstrap {

    public static void main(String[] args) {
        SpringApplication.run(PlatformProductBootstrap.class, args);
    }

}